.el-radio__inner {
  width: 18px;
  height: 18px;
  border-color: #dddddd;
}
.el-form-item--small {
  .el-form-item__content {
    line-height: 36px;
    .el-input--small {
      input {
        height: 36px;
        line-height: 36px;
      }
    }  
  }
  
  .el-form-item__label{
    line-height: 36px;
  }
}

.el-button.is-disabled {
  cursor: not-allowed;
}

.el-table {
  thead {
    color: #333;
    font-weight: 500;
  }
  .el-table__header th {
    font-weight: 400;
    background-color: #f6f6f6;
    padding: 0;
    height: 56px;
    color: #333;
    border-color: transparent;
  }
  .el-table__body tr.current-row>td {
    background-color: $clr-main01-color;
    color: #ffffff;
  }
  .el-table-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
  }
}
.el-table::before,
.el-table__fixed-right::before,
.el-table__fixed::before {
  height: 0px;
}
.el-table .no-ellipsis .cell {
  white-space: nowrap;
  overflow: hidden;
}

.el-table .has-setting-icon .cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.el-table-column--selection .cell {
  padding-left: 10px;
  padding-right: 10px;
}


.el-input-number.left {
  width: 100%;
  .el-input__inner {
    text-align: left;
  }
}


.avatar-uploader {
  line-height: initial;
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .el-upload__tip {
    line-height: 24px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

.avatar-uploader .avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
}

.el-menu-item, .el-submenu__title {
  height: 48px;
  line-height: 48px;
}

.el-button--text {
  color: $clr-main01-color;
}
.el-button {
  &:not(.el-button--text):not(.el-button--primary):not(.el-button--danger):not(.el-button--success) {
    &:focus, &:hover {
      color: $clr-main01-color;
      border-color: rgba($clr-main01-color, 0.4);
      background-color: rgba($clr-main01-color, 0.1);
    }
  }
  &.el-button--primary {
    background-color: $clr-main01-color;
    border-color: $clr-main01-color;
    color: #ffffff;
    &.is-disabled {
      background-color: lighten($clr-main01-color, 20%);
      border-color: lighten($clr-main01-color, 20%);
      color: #ffffff;
      opacity: 1;
    }
  }
  &.el-button--danger {
    background-color: $color-danger;
    border-color: $color-danger;
  }
  &.el-button--small {
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    padding: 0 15px;
    border-radius: 8px;
  }
}

.el-pagination.is-background .el-pager li:not(.disabled).active, .el-pager li.active {
  background-color: $clr-main01-color;
  border-color: $clr-main01-color;
  color: #ffffff;
}

.el-progress-bar__inner {
  background-color: $clr-main01-color;
}

// .el-pagination.is-background .btn-next,
// .el-pagination.is-background .btn-prev,
// .el-pagination.is-background .el-pager li


.el-pagination {
  font-weight: normal;
  &.is-background {
    .btn-next, .btn-prev, .el-pager li {
      min-width: 32px ;
      height: 32px;
      line-height: 32px;
      font-size: 14px;
      border-radius: 8px;
      background-color: #fff;
      border: 1px solid #E5E5E5;
      &:not(.disabled).active, &.active {
        font-weight: bold;
      }
    }
  }
}

.el-dropdown-menu {  
  .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover {
    background-color: rgba($color-primary, 0.2);
    color: $color-primary;
  }
}

.el-radio__input {
  &.is-checked {
    .el-radio__inner {
      background-color: #315BF4;
      border-color: #315BF4;
    }
    & + .el-radio__label {
      color: #315BF4;
    }
  } 
}
.el-checkbox__input {
  &.is-checked, &.is-indeterminate {
    .el-checkbox__inner {
      background-color: #315BF4;
      border-color: #315BF4;
    }
    & + .el-checkbox__label {
      color: #315BF4;
    }
  }
}
.el-switch.is-checked .el-switch__core {
    border-color: #409EFF;
    background-color: #409EFF;
}
.el-switch {
  .el-switch__core {
    background-color: #CCCCCC;
  }
  &.is-checked .el-switch__core {
    border-color: $color-primary;
    background-color: $color-primary;
  }
}
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  border-color: $color-primary;
  background-color: $color-primary;
}
.el-radio-button__inner:hover {
  color: $color-primary;
}
.el-select {
  .el-input__inner {
    background-color: $color-ipt-bg;
    border-color: transparent;
  }
}

// .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
//   color: $color-primary;
//   background-color: $color-primary;
// }
// .el-checkbox__input.is-checked+.el-checkbox__label
.el-checkbox {
  .el-checkbox__input {
    &.is-checked, &.is-indeterminate {
      .el-checkbox__inner {
        color: $color-primary;
        background-color: $color-primary;
      }
      & + .el-checkbox__label {
        color: $color-primary;
      }
    } 
  }
}

.el-radio {
  .el-radio__input {
    &.is-checked {
      .el-radio__inner {
        color: $color-primary;
        background-color: $color-primary;
      }
      & + .el-radio__label {
        color: $color-primary;
      }
    }
  }
}

